var web5_send = document.querySelector(".web5 section .send");
var web5_gain = document.querySelector(".web5 section form .code_box .gain");
var web5_send_error = document.querySelector(".web5 section .send .close_box .icon-error");
var web3_send = document.querySelector(".web3 section .send");
var web3_gain = document.querySelector(".web3 section form .code_box .gain");
var web3_send_error = document.querySelector(".web3 section .send .close_box .icon-error");
var mistake = document.querySelector(".web2 section form .mistake");
var mistake_error = document.querySelector(".web2 section form .mistake .close_box .icon-error");
var enter = document.querySelector(".web2 section form .enter");
var web2 = document.querySelector(".web2");
var login = document.querySelector(".login_and_registration .login");
var web2_cancel = document.querySelector(".web2 header .cancel");
var registration = document.querySelector(".login_and_registration .registration");
var web3_cancel = document.querySelector(".web3 header .cancel");
var web3 = document.querySelector(".web3");
var accomplish = document.querySelector(".web3 section .accomplish");
var web4 = document.querySelector(".web4");
var web4_cancel = document.querySelector(".web4 header .cancel");
var open = document.querySelector(".web4 section .found form .open");
var forget = document.querySelector(".web2 section form .register_and_forget .forget");
var web5 = document.querySelector(".web5");
var web5_cancel = document.querySelector(".web5 header .cancel");
var regi = document.querySelector(".web2 section form .register_and_forget .regi");
var web2_wechat = document.querySelector(".web2 footer .wechat");
var web2_QQ = document.querySelector(".web2 footer .QQ");
web5_gain.addEventListener("click", function() {
	web5_send.style.display = "block"
})
web5_send_error.addEventListener("click", function() {
	web5_send.style.display = "none"
})
web3_gain.addEventListener("click", function() {
	web3_send.style.display = "block"
})
web3_send_error.addEventListener("click", function() {
	web3_send.style.display = "none"
})
enter.addEventListener("click", function() {
	mistake.style.display = "block"
})
mistake_error.addEventListener("click", function() {
	mistake.style.display = "none"
})
registration.addEventListener("click", function() {
	web3.style.transform = "translateX(0)"
})
web3_cancel.addEventListener("click", function() {
	web3.style.transform = "translateX(-100%)"
})
login.addEventListener("click", function() {
	web2.style.transform = "translateX(0)"
})
web2_cancel.addEventListener("click", function() {
	web2.style.transform = "translateX(-100%)"
})
accomplish.addEventListener("click", function() {
	web4.style.transform = "translateX(0)"
})
web4_cancel.addEventListener("click", function() {
	web4.style.transform = "translateX(-100%)"
})
open.addEventListener("click",function(){
	window.location.href = "index.html"
})
forget.addEventListener("click", function() {
	web5.style.transform = "translateX(0)"
})
web5_cancel.addEventListener("click", function() {
	web5.style.transform = "translateX(-100%)"
})
regi.addEventListener("click", function() {
	web3.style.transform = "translateX(0)"
	web2.style.transform = "translateX(-100%)"
})
web2_wechat.addEventListener("click",function(){
	window.location.href = "index.html"
})
web2_QQ.addEventListener("click",function(){
	window.location.href = "index.html"
})